/*
 * @Author: zhangxiangsheng 1026583651@qq.com
 * @Date: 2024-04-10 08:52:59
 * @LastEditors: 花香蝶自来 1026583651@qq.com
 * @LastEditTime: 2024-07-14 16:55:54
 * @FilePath: \crm\z\function\imgsrc.js
 * @Description:
 *
 * Copyright (c) 2024 by ${git_name_email}, All Rights Reserved.
 */

// 静态图片-放在测试环境的oss上
let okimgs = [
	"4697e5caf9f245ab94550b351a1a0a3c.png",
	"e49583aa479244888978ca66028aef84.png",
	"cc27ba014c4c445bbda7bb4964d1dda6.png",
	"846aceefcfe5487baa8150b5a8ffbda7.png",
	"70c36ba3294847d2b1db3b7e85e7271c.png",
	"78354cdbefcf450eb4595a570ad1bdb3.png",
	"cc27ba014c4c445bbda7bb4964d1dda6.png",
	"909196d585b544cfb5398d808085663c.png",
	"8f5cdfb31ea944a79c2dcd2fb954463e.png",
	"ab1e70eda0c8414691aab1f49dd522d7.png",
	"d94d9a70bdd1489abba5bf3da0b4aaff.png",
	"5954227589e9432a899bb0fe08bd54df.png",
	"8b376e434d904d0a9bce3833110b18ba.png",
	"f48994b9594b4460a4680bdf9b861e4f.png"
]
export default function imgsrc(name) {

	if (name.includes("/admin/sys-file/oss/file")) {
		return process.env.VUE_APP_BASE_URL + name;
	} else if (name.includes("imgs")) {
		// console.log(require('@/static/'+name));
		return require('@/static/' + name);
	} else if (okimgs.includes(name)) {
		return require('@/static/imgs/' + name);
	}
	console.log(name, "name");
	return process.env.VUE_APP_BASE_URL + "/admin/sys-file/oss/file?fileName=" + name;
}